package cn.itcast.ft.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class FtTokenDTO implements Serializable {
    @JsonProperty("code")
    private Integer code;
    @JsonProperty("result")
    private FtTokenDetailDTO result;
    @Data
    public class FtTokenDetailDTO {
        @JsonProperty("access_token")
        private String accessToken;
        @JsonProperty("refresh_token")
        private String refreshToken;
        @JsonProperty("exp_time")
        private Date expTime;
    }
}
